@echo off
for /f "tokens=5" %%a in ('netstat /ano ^| findstr 9001') do taskkill /F /pid %%a

@echo off
for /f "tokens=5" %%a in ('netstat /ano ^| findstr 9002') do taskkill /F /pid %%a

@echo off
for /f "tokens=5" %%a in ('netstat /ano ^| findstr 9003') do taskkill /F /pid %%a

@echo off
for /f "tokens=5" %%a in ('netstat /ano ^| findstr 8887') do taskkill /F /pid %%a
exit